// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   WSResponse.java

package com.hfstu.ifs.webservice.ws.response.base;


public class WSResponse
{

	public static final String SUCCESS = "0";
	public static final String PARAMETER_ERROR = "400";
	public static final String SYSTEM_ERROR = "500";
	public static final String SYSTEM_ERROR_MESSAGE = "Runtime unknown internal error.";
	private String code;
	private String message;

	public WSResponse()
	{
		code = "0";
	}

	public WSResponse setError(String resultCode, String resultMessage)
	{
		code = resultCode;
		message = resultMessage;
		return this;
	}

	public WSResponse setDefaultError()
	{
		return setError("500", "Runtime unknown internal error.");
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getMessage()
	{
		return message;
	}

	public void setMessage(String message)
	{
		this.message = message;
	}
}
